import request from '@/utils/request'
/**
 * 获取员工列表
 */
export function getEmployeeListAPI(params) {
    return request({
        url: '/park/sys/user',
        params
    })
}
/**
 * 添加用户
 */
export function createEmployeeAPI(data) {
    return request({
        url: '/park/sys/user',
        method: 'post',
        data
    })
}
/**
 * 编辑用户
 */
export function editEmployeeAPI(data) {
    return request({
        url: '/park/sys/user',
        method: 'put',
        data
    })
}
/**
 * 删除用户
 */
 export function delEmployeeAPI(id) {
    return request({
        url: `/park/sys/user/${id}`,
        method: 'delete'
    })
}
/**
 * 重置密码
 */
export function resetPasswordAPI(data) {
    return request({
        url: '/park/sys/user/resetPwd',
        mothod: 'put',
        data
    })
}